home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / comm / tcp / ftpchmod.lha / ftpCHMOD / ftpCHMOD.doc < prev    next >
Text File  |  1999-05-31  |  3KB  |  90 lines

  1. ftpCHMOD 1.0
  2. by Chris Young
  3. © 1999 Unsatisfactory Software
  4.  
  5. ftpCHMOD is a little CLI command which will enable you to change file
  6. permissions on a remote FTP server.
  7.  
  8. All use of this software is at your own risk.  No warranty is expressed or
  9. implied.  I cannot accept responsibility for any damage or loss of data
  10. caused by direct or indirect use of ftpCHMOD.
  11.  
  12. USAGE
  13. -----
  14.  
  15. Template: CHMOD/N/A,PATH/A,USER/K/A,PASS/K/A,PORT/K/N
  16.  
  17. Where CHMOD/N/A is a three digit number:
  18.  
  19.           Owner   Group   Other
  20. Readable    4       4       4
  21. Writable    2       2       2
  22. Executable  1       1       1
  23.  
  24. Add up the numbers in each column.  eg. if you want the file to to be
  25. readable and writable by you (owner), then the first digit will be "6".  If
  26. you want the members of your group to have read-only access to the file,
  27. then the second digit will be "4".  If you want everybody else to have no
  28. access, "0" should be the last digit.
  29.  
  30. The most useful combinations (in the context of web space) are:
  31.  
  32. 755 - Gives you full permissions, and everybody else read/execute
  33.       (eg. CGI scripts)
  34.  
  35. 666 - Gives everybody read/write permission
  36.       (eg. files that scripts need to write to)
  37.  
  38. 644 - Gives you read/write permission, and everybody else read-only
  39.       (eg. most other files)
  40.  
  41. PATH/A is the full path to the file, including hostname
  42. eg. ftp.domain.com/path/file
  43.  
  44. USER/K/A and PASS/K/A specify your username and password.
  45.  
  46. PORT specifies the TCP port number to connect to (defaults to 21)
  47.  
  48. Example
  49. -------
  50.  
  51. ftpCHMOD 755 webspace.domain.net/cgi-bin/mailform.cgi USER username PASS
  52. password
  53.  
  54. Will connect to "webspace.domain.net", login as user "username" with
  55. password "password", and set the permissions for the file
  56. "cgi-bin/mailform.cgi" to 755 (see above)
  57.  
  58. ftpCHMOD should return:
  59.  
  60. Looking up host...
  61. Attempting to connect...
  62. Logging in...
  63. Changing directory...
  64. Setting permissions...
  65. 200 CHMOD command successful.
  66.  
  67. If anything else appears, an error has occured.  In particular, ftpCHMOD
  68. doesn't always return the result of the CHMOD command - if there is no
  69. result, then the most likely cause is that your username and/or password is
  70. incorrect or that the file does not exist.  Remember that most servers are
  71. CASE SENSITIVE.
  72.  
  73.  
  74. FUTURE
  75. ------
  76.  
  77. This was originally intended to be a CHMOD extension for FTPMount.  I still
  78. have plans to write one, and that's what the future of this little program
  79. is going to be.
  80.  
  81.  
  82. CONTACT
  83. -------
  84.  
  85. In case you have problems, questions or comments about ftpCHMOD, my e-mail
  86. address is: chrisdpy@bigfoot.com
  87.  
  88. Unsatisfactory Software: It's not that bad.
  89. http://www.unsatisfactory.freeserve.co.uk
  90.